<div class="row">
    <div class="button-container mb10">
    	<?php echo Yii::app()->user->checkAccess('category|add')?CHtml::link('添加栏目',$this->createUrl('category/add' ,array('cate_type'=>1)),array('class'=>'button button-success')):'';?>
        <?php echo Yii::app()->user->checkAccess('category|add')?CHtml::link('添加单页面',$this->createUrl('category/add' ,array('cate_type'=>2)),array('class'=>'button button-success')):'';?>
        <?php echo Yii::app()->user->checkAccess('category|add')?CHtml::link('添加外部栏目',$this->createUrl('category/add' ,array('cate_type'=>3)),array('class'=>'button button-success')):'';?>
    </div>
    <table class="table table-bordered table-hover definewidth">
    	<thead>
    		<tr>
    			<th style="width: 80px;"><?php echo $this->_attributeLabels['sort'] ?></th>
                <th style="width: 80px;"><?php echo $this->_attributeLabels['cate_id'] ?></th>
    			<th><?php echo $this->_attributeLabels['cate_name'] ?></th>
                <th><?php echo $this->_attributeLabels['cate_type'] ?></th>
                <th><?php echo $this->_attributeLabels['model_id'] ?></th>
                <th><?php echo $this->_attributeLabels['items'] ?></th>
                <th><?php echo $this->_attributeLabels['linkurl'] ?></th>
    			<th style="width:150px;">管理操作</th>
    		</tr>
    	</thead>
    	<?php echo $categorys;?>
    </table>
    <div class="table-bottom-operate">
        <div class="inline pull-left table-operate">
            <?php echo Yii::app()->user->checkAccess('category|deleteall')?CHtml::link('批量删除','javascript:void(0);',array('class'=>'button button-primary deleteall','url'=>$this->createUrl('category/deleteall'))):'';?>
        </div>
    </div>
</div>